package com.open.capacity.paper.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.open.capacity.common.model.Suggest;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface SuggestDao extends BaseMapper<Suggest> {

    List<Suggest> findList(Map<String, Object> params);

    Suggest selectByPaperIdAndUserId(@Param("parerId") Integer parerId, @Param("userId") Long userId);

    int updateByPaperIdAndUserId(Suggest suggest);
}
